package com.gobo.jinghuimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.gobo.common.utils.PageUtils;
import com.gobo.jinghuimall.product.entity.CategoryEntity;
import com.gobo.jinghuimall.product.vo.Catelog2Vo;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author guanbo
 * @email gobostart@163.com
 * @date 2021-10-16 20:46:46
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<CategoryEntity> listTree();

    void removeCatByIds(List<Long> asList);

    List<Long> getCatelogPath(Long catelogId);

    void updateAndRelationById(CategoryEntity category);

    List<CategoryEntity> getCategoryLevelOne();

    Map<String, List<Catelog2Vo>> getCatalogJson();
}

